class ClockUserInfo {
  int? userNo;
  String? userName;
  int? unitID;
  String? unitName;
  String? fDate;
  String? fAMType;
  String? fPMType;
  String? fAM;
  String? fPM;
  String? ip;
  String? buttonName;

  static ClockUserInfo fromJson(Map<String, dynamic> map) {
    // if (map == null) return null;
    ClockUserInfo clockUserInfo = ClockUserInfo();
    clockUserInfo.userNo = map['UserNo'];
    clockUserInfo.userName = map['UserName'];
    clockUserInfo.unitID = map['UnitID'];
    clockUserInfo.unitName = map['UnitName'];
    clockUserInfo.fDate = map['FDate'];
    clockUserInfo.fAMType = map['FAMType'];
    clockUserInfo.fPMType = map['FPMType'];
    clockUserInfo.fAM = map['FAM'];
    clockUserInfo.fPM = map['FPM'];
    clockUserInfo.ip = map['IP'];
    clockUserInfo.buttonName = map['ButtonName'];
    return clockUserInfo;
  }

  Map toJson() => {
    "UserNo": userNo,
    "UserName": userName,
    "UnitID": unitID,
    "UnitName": unitName,
    "FDate": fDate,
    "FAMType": fAMType,
    "FPMType": fPMType,
    "FAM": fAM,
    "FPM": fPM,
    "IP": ip,
    "ButtonName": buttonName,
  };
}